<!-- 模型 -->
<template>
  <div class="model">
    <div v-if="Array.isArray(model)">
      <model
        v-for="(item, index) in model"
        :key="index"
        :model="item"
        ></model>
    </div>
    <div v-else>
      <!-- <titleLable :model="model"></titleLable> -->
      <echarts
        v-if="model.isEcharts"
        :model="model"
        :modelData="modelData"></echarts>
      <component
        v-else
        :is="model.label"
        :model="model"
        :modelData="modelData"></component>
      <model
        v-if="model.children"
        :model="model.children"></model>
    </div>
  </div>
</template>
<style lang="less" src="./index.less"></style>
<script src="./index.js"></script>